﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<link rel="stylesheet" type="text/css" href="admin/css/public.css">
</head>

<body>
<div  id="main">
<table  width="80%" border="0" cellspacing="0" cellpadding="0" class="news_table">


  <button id="exportExcel"> 管理员批量导出</button>
  <form action="{{url('import')}}" method="post" enctype="multipart/form-data">
    {{csrf_field()}}
    <button> 管理员批量导入  </button>
  </form>

  <caption>
    管理员列表
  </caption>
  <tr>
    <th scope="col">编号</th>
    <th scope="col" width="100">名称</th>
    <th scope="col">性别</th>
    <th scope="col">角色</th>
    <th scope="col">密码</th>
    <th scope="col">爱好</th>
    <th scope="col">城市</th>
    <th scope="col">介绍</th>
    <th scope="col">操作</th>
  </tr>
  @foreach($info as $v)
      <tr>
        <td>{{$v->id}}</td>
        <td>{{$v->username}}</td>
        <td>{{$v->sex}}</td>
        <td>{{$v->js}}</td>
        <td>{{$v->psd}}</td>
        <td>{{$v->hobby}}</td>
        <td>{{$v->city}}</td>
        <td>{{$v->introduce}}</td>
        <td>
            <a href="{{url('admin_del')}}?id=<?php echo $v->id; ?>">删除</a>|
            <a href="{{url('admin_edit')}}?id=<?php echo $v->id; ?>">编辑</a>
        </td>
      </tr>
    @endforeach
</table>



</div>
</body>
</html>
<script src="jquery.js"></script>
<script>
    $("#exportExcel").click(function () {
        location.href = "{{url('export')}}";
    })
</script>
